import './styles/index.scss';
import 'virtual:svg-icons-register'
/*——————————————————————————————————————————————————————————————————*/
import Icon from '@/components/Icon/index.vue'
import Button from '@/components/Button/index.vue'
import Countdown from '@/components/Countdown/index.vue'
import LcHeader from '@/components/LeetcodeHeader/index.vue'
import MenuH from "@/components/MenuH/index.vue"
import Input from "@/components/Input/index.vue"

const componentsArr = [ //在这里添加
    Icon,
    Button,
    Countdown,
    LcHeader,
    MenuH,
    Input
]
/*——————————————————————————————————————————————————————————————————*/
const install = (app: any) => {
    componentsArr.forEach((component) => {
        app.component(component.name, component)
    })

}
export default {
    install
}
/*——————————————————————————————————————————————————————————————————*/
export {        //还有这里添加
    install,
    Icon,
    Button,
    Countdown,
    LcHeader,
    MenuH,
    Input
}
